package com.jvm.classloader.oeder;

/**
 * sd..
 *
 * @author Lizhong
 * @date 2020/8/25
 */
class Test {
    static {
        System.out.println("static 静态代码块");
    }

    //    public static final String str= UUID.randomUUID().toString();
    public static final double str = Math.random();  //编译期不确定
}


public class FinalUUidTest {
    public static void main(String[] args) throws InterruptedException {
        // System.out.println(Test.str);
        System.out.println(Son.strFather);

        Thread.sleep(1000);
    }
}

class YeYe {
    static {
        System.out.println("YeYe静态代码块");
    }
}

class Father extends YeYe {
    public final static String strFnialFather = "HelloJVM_Father";
    public  static String strFather = "HelloJVM_Father";

    static {
        System.out.println("Father静态代码块");
    }
}

class Son extends Father {
    public static String strSon = "HelloJVM_Son";

    static {
        System.out.println("Son静态代码块");
    }
}

